package com.hc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class DiapatchController {

    @GetMapping("{index}")
    public String index(@PathVariable("index") String index) {
        return index;
    }

    @GetMapping("common/{index}")
    public String index2(@PathVariable("index") String index) {
        return "common/"+index;
    }

}